
module.exports = {
  publicPath: './',
  transpileDependencies: [
    'vuetify'
  ],
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = "0 COSMOS";
        return args;
      })
  },
  devServer: {
    // 设置主机地址
    host: 'localhost',
    // 设置默认端口
    port: 8090,
    // 设置代理
    proxy: {
      '/admin': {
        target: 'http://XXX',//你要跨的域
        changeOrigin: true,
        pathRewrite: {
          '^/admin': '/admin',
        },
      }
    },
  },

}
